package com.situ.day6;

public class Number {
	private int sum1;
	private int sum2;
	public int getSum1() {
		return sum1;
	}
	
	public Number() {
		super();
	}

	public Number(int sum1, int sum2) {
		super();
		this.sum1 = sum1;
		this.sum2 = sum2;
	}
	
	public int add(){
		return sum1 + sum2;
	}
	
	public int jian(){
		return sum1 - sum2;
	}
	
	public int cheng(){
		return sum1 *sum2;
	}
	public int chu(){
		return sum1 / sum2;
	}
	public void setSum1(int sum1) {
		this.sum1 = sum1;
	}
	public int getSum2() {
		return sum2;
	}
	public void setSum2(int sum2) {
		this.sum2 = sum2;
	}


	@Override
	public String toString() {
		return "Number [sum1=" + sum1 + ", sum2=" + sum2 + "]";
	}
	
	
}
